//
//  XCBaseLable.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/21.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCBaseLable.h"

@implementation XCBaseLable


- (instancetype)init
{
    self = [super init];
    if (self) {
        NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
        [center addObserver:self selector:@selector(receiveNotifition:) name:@"day" object:nil];
    }
    return self;
}


-(void)receiveNotifition:(NSNotification *)message {
    
    if ([@"1" isEqualToString:message.object]) {
        self.textColor = [UIColor whiteColor];
        
    }else if ([@"0" isEqualToString:message.object]) {
        self.textColor = [UIColor colorWithWhite:0.200 alpha:1.000];
        
    }
    
}
@end
